package com.ferry.transport.api;

/**
 * Created by daiyong
 * 连接对象
 */
public abstract class Connection {

	private final UnResolvedAddress address;

	public Connection(UnResolvedAddress address) {
		this.address = address;
	}

	public UnResolvedAddress getAddress() {
		return address;
	}

	public void operationComplete(OperationListener operationListener) {

	}

	public abstract void setReconnect(boolean reconnect);

	public interface OperationListener {
		void complete(boolean isSuccess);
	}


}
